package proxy.dynamicp;

import java.lang.reflect.Proxy;

public class App {

    public static void main(String[] args) {
        HoseeDynamicImpl hoseeDynamic = new HoseeDynamicImpl();
        HoseeDynamicProxy proxy = new HoseeDynamicProxy(hoseeDynamic);
        HoseeDynamic hoseeDynamic1 = (HoseeDynamic) Proxy.newProxyInstance(hoseeDynamic.getClass().getClassLoader(), hoseeDynamic.getClass().getInterfaces(), proxy);
        hoseeDynamic1.say();
    }
}
